Optimal. Leaf size=210 \[ \frac {2 (A b-a B) \sin (c+d x) \sqrt {\sec (c+d x)}}{b^2 d}-\frac {2 (A b-a B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{b^2 d}-\frac {2 a (A b-a B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \Pi \left (\frac {2 a}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right )}{b^2 d (a+b)}+\frac {2 B \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 b d}+\frac {2 B \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 b d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.71, antiderivative size = 210, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 9, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {4033, 4102, 4106, 3849, 2805, 3787, 3771, 2639, 2641} \[ \frac {2 (A b-a B) \sin (c+d x) \sqrt {\sec (c+d x)}}{b^2 d}-\frac {2 (A b-a B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{b^2 d}-\frac {2 a (A b-a B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \Pi \left (\frac {2 a}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right )}{b^2 d (a+b)}+\frac {2 B \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 b d}+\frac {2 B \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 b d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 2805
Rule 3771
Rule 3787
Rule 3849
Rule 4033
Rule 4102
Rule 4106
Rubi steps
\begin {align*} \int \frac {\sec ^{\frac {5}{2}}(c+d x) (A+B \sec (c+d x))}{a+b \sec (c+d x)} \, dx &=\frac {2 B \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 b d}+\frac {2 \int \frac {\sqrt {\sec (c+d x)} \left (\frac {a B}{2}+\frac {1}{2} b B \sec (c+d x)+\frac {3}{2} (A b-a B) \sec ^2(c+d x)\right )}{a+b \sec (c+d x)} \, dx}{3 b}\\ &=\frac {2 (A b-a B) \sqrt {\sec (c+d x)} \sin (c+d x)}{b^2 d}+\frac {2 B \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 b d}+\frac {4 \int \frac {-\frac {3}{4} a (A b-a B)-\frac {1}{4} b (3 A b-4 a B) \sec (c+d x)-\frac {1}{4} \left (3 a A b-3 a^2 B-b^2 B\right ) \sec ^2(c+d x)}{\sqrt {\sec (c+d x)} (a+b \sec (c+d x))} \, dx}{3 b^2}\\ &=\frac {2 (A b-a B) \sqrt {\sec (c+d x)} \sin (c+d x)}{b^2 d}+\frac {2 B \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 b d}+\frac {4 \int \frac {-\frac {3}{4} a^2 (A b-a B)-\left (\frac {1}{4} a b (3 A b-4 a B)-\frac {3}{4} a b (A b-a B)\right ) \sec (c+d x)}{\sqrt {\sec (c+d x)}} \, dx}{3 a^2 b^2}-\frac {(a (A b-a B)) \int \frac {\sec ^{\frac {3}{2}}(c+d x)}{a+b \sec (c+d x)} \, dx}{b^2}\\ &=\frac {2 (A b-a B) \sqrt {\sec (c+d x)} \sin (c+d x)}{b^2 d}+\frac {2 B \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 b d}+\frac {B \int \sqrt {\sec (c+d x)} \, dx}{3 b}-\frac {(A b-a B) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx}{b^2}-\frac {\left (a (A b-a B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)} (b+a \cos (c+d x))} \, dx}{b^2}\\ &=-\frac {2 a (A b-a B) \sqrt {\cos (c+d x)} \Pi \left (\frac {2 a}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{b^2 (a+b) d}+\frac {2 (A b-a B) \sqrt {\sec (c+d x)} \sin (c+d x)}{b^2 d}+\frac {2 B \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 b d}+\frac {\left (B \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{3 b}-\frac {\left ((A b-a B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx}{b^2}\\ &=-\frac {2 (A b-a B) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{b^2 d}+\frac {2 B \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{3 b d}-\frac {2 a (A b-a B) \sqrt {\cos (c+d x)} \Pi \left (\frac {2 a}{a+b};\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{b^2 (a+b) d}+\frac {2 (A b-a B) \sqrt {\sec (c+d x)} \sin (c+d x)}{b^2 d}+\frac {2 B \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 b d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 3.66, size = 225, normalized size = 1.07 \[ -\frac {\cot (c+d x) \left (-2 \left (3 a^2 B+3 a b (B-A)+b^2 (B-3 A)\right ) \sqrt {-\tan ^2(c+d x)} F\left (\left .\sin ^{-1}\left (\sqrt {\sec (c+d x)}\right )\right |-1\right )+6 a^2 B \sqrt {-\tan ^2(c+d x)} \Pi \left (-\frac {b}{a};\left .\sin ^{-1}\left (\sqrt {\sec (c+d x)}\right )\right |-1\right )-6 b (A b-a B) \sqrt {-\tan ^2(c+d x)} E\left (\left .\sin ^{-1}\left (\sqrt {\sec (c+d x)}\right )\right |-1\right )-6 a A b \sqrt {-\tan ^2(c+d x)} \Pi \left (-\frac {b}{a};\left .\sin ^{-1}\left (\sqrt {\sec (c+d x)}\right )\right |-1\right )-b^2 B \sec ^{\frac {5}{2}}(c+d x)+b^2 B \cos (2 (c+d x)) \sec ^{\frac {5}{2}}(c+d x)\right )}{3 b^3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \sec \left (d x + c\right ) + A\right )} \sec \left (d x + c\right )^{\frac {5}{2}}}{b \sec \left (d x + c\right ) + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 11.19, size = 466, normalized size = 2.22 \[ -\frac {\sqrt {-\left (-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (\frac {2 \left (A b -a B \right ) a^{2} \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticPi \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \frac {2 a}{a -b}, \sqrt {2}\right )}{b^{2} \left (a^{2}-a b \right ) \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}}+\frac {2 \left (A b -a B \right ) \left (-\sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+2 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}{b^{2} \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} \left (2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right )}+\frac {2 B \left (-\frac {\cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}}{6 \left (-\frac {1}{2}+\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}+\frac {\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )}{3 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}}\right )}{b}\right )}{\sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \sec \left (d x + c\right ) + A\right )} \sec \left (d x + c\right )^{\frac {5}{2}}}{b \sec \left (d x + c\right ) + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {\left (A+\frac {B}{\cos \left (c+d\,x\right )}\right )\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2}}{a+\frac {b}{\cos \left (c+d\,x\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________